const supplierRoutes = {
  path: 'supplier',
  name: 'Supplier',
  component: () => import('@/views/goods/index.vue'),
  meta: {
    title: '商品供应商'
  },
  redirect: '/goods/supplier/goods_supplier',
  children: [
    {
      path: 'goods_supplier',
      name: 'GoodsSupplier',
      component: () => import('@/views/goods/goods-supplier/goods-supplier'),
      meta: { title: '商品供应商', noCache: false }
    },
    {
      path: 'add_supplier',
      name: 'AddSupplier',
      hidden: true,
      component: () => import('@/views/goods/goods-supplier/add-supplier'),
      meta: { title: '新增供应商', noCache: true }
    },
    {
      path: 'edit_supplier',
      name: 'EditSupplier',
      hidden: true,
      component: () => import('@/views/goods/goods-supplier/add-supplier'),
      meta: { title: '编辑供应商', noCache: true }
    }
  ]
}

export default supplierRoutes
